<ui:composition template="/templates/contentTempl.xhtml"
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:a="http://richfaces.org/a4j" xmlns:r="http://richfaces.org/rich"
	xmlns:t="http://myfaces.apache.org/tomahawk">
	<ui:define name="title">Регистриране на потребител</ui:define>
	<ui:define name="pageLabel">
		<f:view>
			<h:outputText value="Регистриране на потребител" />
		</f:view>
	</ui:define>
	<ui:define name="topCenterSideContent">
		<a:keepAlive beanName="regUser" />
		<f:view>
			<h:form id="frmEditrObj">
				<h:panelGrid>
					<h:outputText value="Потребителско име"></h:outputText>
					<h:panelGroup>
						<h:inputText value="#{regUser.username}" size="40" />
						<h:outputText value="*" styleClass="error-style-bold" />
					</h:panelGroup>

					<h:outputText value="Парола"></h:outputText>
					<h:panelGroup>
						<h:inputSecret value="#{regUser.newPassword}" size="40" />
						<h:outputText value="*" styleClass="error-style-bold" />
					</h:panelGroup>

					<h:outputText value="Потвърждаване на паролата" />
					<h:panelGroup>
						<h:inputSecret value="#{regUser.confirmNewPassword}" size="40" />
						<h:outputText value="*" styleClass="error-style-bold" />
					</h:panelGroup>

					<h:outputText value="Име"></h:outputText>
					<h:panelGroup>
						<h:inputText value="#{regUser.firstName}" size="40" />
						<h:outputText value="*" styleClass="error-style-bold" />
					</h:panelGroup>
					<h:outputText value="Презиме"></h:outputText>
					<h:panelGroup>
						<h:inputText value="#{regUser.surname}" size="40" />
					</h:panelGroup>
					<h:outputText value="Фамилия"></h:outputText>
					<h:panelGroup>
						<h:inputText value="#{regUser.family}" size="40" />
						<h:outputText value="*" styleClass="error-style-bold" />
					</h:panelGroup>
					<h:outputText value="ЕГН/ЛНЧ"></h:outputText>
					<h:panelGroup>
						<h:inputText value="#{regUser.egn}" size="40" />
						<h:outputText value="*" styleClass="error-style-bold" />
					</h:panelGroup>
					<h:outputText value="е-mail"></h:outputText>
					<h:panelGroup>
						<h:inputText value="#{regUser.email}" size="40" />
						<h:outputText value="*" styleClass="error-style-bold" />
					</h:panelGroup>
					<r:panel header="Групи">
						<h:outputText value="Избор на група" />
						<h:selectOneMenu value="#{regUser.selectedGroup}">
							<f:selectItems value="#{regUser.nomGroups}" />
						</h:selectOneMenu>
					</r:panel>
					<h:panelGrid styleClass="container-right">
						<h:commandButton value="Запис"
							action="#{regUser.saveUsers}" type="submit" id="btnSave" />
					</h:panelGrid>
				</h:panelGrid>
			</h:form>
		</f:view>
	</ui:define>
</ui:composition>